﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SendShortMessage.aspx.cs"
    EnableEventValidation="false" Inherits="User_SendShortMessage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>

    <script type="text/javascript" src="../../js/MyOption.js"></script>

    <link rel="Stylesheet" type="text/css" href="../../Styles/right_style.css" />
    <link rel="Stylesheet" type="text/css" href="../../Scripts/jquery.ui/css/start/jquery-ui.css" />
   <script type="text/javascript" src="../../Scripts/jquery.ui/js/jquery.js"></script>
   <script type="text/javascript" src="../../Scripts/jquery.ui/js/jquery-ui.js"></script>

    <style type="text/css">
<!--
html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
-->
</style>

</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <input id="sendTargetSections" type="hidden" runat="server" />
        <input id="selectedEmpCollection" runat="server" type="hidden" />

            <table width="99%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77acd0" style="border-collapse:collapse; ">

                <tr bgcolor="#b1d5ef">
                    <td colspan="3" style="height: 31px" align="center">
                        发送短消息</td>
                </tr>
                <tr>
                    <td style="width: 97px; height: 12px" align="center">
                        发送组别：</td>
                    <td colspan="2" style="height: 12px; width: 257px;" valign="middle">
                        <asp:RadioButtonList ID="sendTarget" runat="server" RepeatDirection="Horizontal"
                            Width="397px" AutoPostBack="True">
                            <asp:ListItem Value="section">部门</asp:ListItem>
                            <asp:ListItem Value="someOne" Selected="True">部门员工</asp:ListItem>
                            <asp:ListItem Value="someGroup">通讯组</asp:ListItem>
                            <asp:ListItem Value="theOne">指定人员</asp:ListItem>
                        </asp:RadioButtonList></td>
                </tr>
                <tr>
                    <td style="width: 97px; " align="center">
                        接<br />
                        收<br />
                        对<br />
                        象</td>
                    <td colspan="2" style="" align="left">
                        <asp:Panel ID="someOnePanel" runat="server" Width="575px">
                            <table style="width: 575px" cellpadding="0">
                                <tr>
                                    <td style="width: 243px; height: 19px;">
                                        待选人员</td>
                                    <td style="width: 92px; height: 19px;">
                                    </td>
                                    <td style="height: 19px; width: 246px;">
                                        已选人员</td>
                                </tr>
                                <tr>
                                    <td style="width: 243px; height: 182px" valign="top">
                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                            <ContentTemplate>
                                                <asp:Panel ID="secondSectionTreePanel" runat="server" Height="150px" Width="245px"
                                                    ScrollBars="Auto">
                                                    <asp:TreeView ID="secondSectionTree" runat="server" Height="136px" Width="226px"
                                                        ImageSet="Arrows" OnSelectedNodeChanged="secondSectionTree_SelectedNodeChanged">
                                                    </asp:TreeView>
                                                </asp:Panel>
                                                <asp:ListBox ID="sectionEmpLtb" runat="server" Height="139px" Width="250px"
                                                    SelectionMode="Multiple" BackColor="#EFF5FB"></asp:ListBox>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </td>
                                    <td style="width: 92px; height: 182px" valign="middle" align="center">
                                        <p>
                                            <input id="rightMoveButton" onclick="moveSelectEmp('sectionEmpLtb','selectEmpLbx')"
                                                style="width: 37px; height: 24px" type="button" value=">>" title="添加到已选人员" /></p>
                                        <input id="leftMoveButton" onclick="moveSelectEmp('selectEmpLbx','sectionEmpLtb')"
                                            style="width: 37px; height: 24px" type="button" value="<<" title="从已选人员中移除" />
                                        <p>
                                            <input id="allRightMoveButton" onclick="moveALLSelectEmp('sectionEmpLtb','selectEmpLbx')"
                                                style="width: 37px; height: 24px" type="button" value="-->>" title="全部添加到已选人员" /></p>
                                        <input id="allLeftMoveButton" onclick="moveALLSelectEmp('selectEmpLbx','sectionEmpLtb')"
                                            type="button" value="<<--" title="全部从已选人员中移除" /></td>
                                    <td style="height: 182px; width: 246px;" valign="top">
                                        <asp:ListBox ID="selectEmpLbx" runat="server" Height="303px" Width="245px"
                                            SelectionMode="Multiple" BackColor="#EFF5FB"></asp:ListBox></td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <asp:Panel ID="sectionPanel" runat="server" HorizontalAlign="Justify"
                            Width="125px">
                            <asp:ListBox ID="sectionShowLbx" runat="server" Height="192px" Width="576px" 
                                SelectionMode="Multiple" BackColor="#EFF5FB"></asp:ListBox></asp:Panel>
                        <asp:Panel ID="someGroupPanel" runat="server" Width="125px">
                            <asp:ListBox ID="someGroupLtx" runat="server" Height="192px" Width="576px" 
                                BackColor="#EFF5FB"></asp:ListBox></asp:Panel>
                        <asp:Panel ID="theOnePanel" runat="server" Width="125px">
                            <table style="width: 575px">
                                <tr>
                                    <td style="width: 267px">
                                        待选人员</td>
                                    <td style="width: 52px">
                                    </td>
                                    <td>
                                        已选人员</td>
                                </tr>
                                <tr>
                                    <td style="width: 267px; height: 26px;">
                                        <input id="willSelectOneTxt" onkeyup="willSelectOneTxtValueChange('willSelectOneTxt','willSelectOneLbx')"
                                            style="width: 160px; " type="text" />
                                        <font style="font-size: 12px">查找待选人员姓名</font></td>
                                    <td rowspan="2" style="width: 52px" align="center">
                                        <p>
                                            <input id="theOneRightMoveButton" onclick="moveSelectEmp('willSelectOneLbx','selectedLbx','right')"
                                                style="width: 37px; height: 24px" type="button" value=">>" title="添加到已选人员" /></p>
                                        <input id="theOneLeftMoveButton" onclick="moveSelectEmp('selectedLbx','willSelectOneLbx','left')"
                                            style="width: 37px; height: 24px" type="button" value="<<" title="从已选人员中移除" />
                                        <p>
                                            <input id="theOneAllRightMoveButton" onclick="moveALLSelectEmp('willSelectOneLbx','selectedLbx','right')"
                                                style="width: 37px; height: 24px" type="button" value="-->>" title="全部添加到已选人员" /></p>
                                        <input id="theOneAllLeftMoveButton" onclick="moveALLSelectEmp('selectedLbx','willSelectOneLbx','left')"
                                            type="button" value="<<--" title="全部从已选人员中移除" /></td>
                                    <td rowspan="2">
                                        <asp:ListBox ID="selectedLbx" runat="server" Height="170px" Width="244px"
                                            SelectionMode="Multiple" BackColor="#EFF5FB"></asp:ListBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 267px; height: 142px;">
                                        <asp:ListBox ID="willSelectOneLbx" runat="server" Height="140px" Width="266px" BackColor="#EFF5FB"
                                            SelectionMode="Multiple"></asp:ListBox>

                                        <script type="text/javascript">
                                            loadOptions('willSelectOneLbx');
                                        </script>

                                    </td>
                                </tr>
                            </table>
                        </asp:Panel></td>
                </tr>
                <tr>
                    <td style="width: 97px; height: 145px" align="center">
                        发<br />
                        送<br />
                        内<br />
                        容</td>
                    <td colspan="2" style="height: 145px; " align="left">
                        <asp:TextBox ID="msgContent" runat="server" Height="170px" TextMode="MultiLine" Width="568px"></asp:TextBox></td>
                </tr>
                <tr bgcolor="#b1d5ef">
                    <td colspan="3" style="height: 31px; " align="center">
                        <asp:Button ID="sectionSendButton" runat="server" OnClick="sectionSendButton_Click"
                            OnClientClick="if(checkSendTarget('sectionShowLbx','msgContent')){getTargetSectionCollection('sectionShowLbx','sendTargetSections');}else{return false;}"
                            Text="" CssClass="button_fs_an" Width="121px" />
                        <asp:Button ID="sectionEmpSendButton" runat="server" OnClientClick="return checkSendTarget('selectEmpLbx','msgContent')"
                            Text=""  CssClass="button_fs_an" Width="121px" OnClick="sectionEmpSendButton_Click" />
                        <asp:Button ID="someGroupSendButton"  runat="server" OnClientClick="return checkSendTarget('someGroupLtx','msgContent')"
                            Text=""  CssClass="button_fs_an" Width="121px" />
                        <asp:Button ID="theOneSendButton" runat="server" OnClientClick="return checkSendTarget('selectedLbx','msgContent')"
                            Text=""  CssClass="button_fs_an" Width="121px" OnClick="theOneSendButton_Click" /></td>
                </tr>
            </table>
    </form>
</body>
</html>
